<div class="account-wrapper">
    <div class="account-body" ng-controller="questionAddCtrl">
        <h4>添加问题</h4>

        <form class="form account-form">
            <!--<div class="form-group">-->
            <!--<label class="control-label" for="textinput">displayOrder:</label>-->
            <!--<input class="form-control" ng-model="question.displayOrder" required tabindex="5">-->
            <!--</div>-->
            <div class="form-group">
                <label class="control-label" for="textinput">小区：<!--community:--></label>
                <label> <input style="zoom:1.8;margin-left: 10px;vertical-align:middle" ng-model="ck"
                               type="checkbox" ng-click="allCheck(ck)"/>全选</label>
                <br>
                <label ng-repeat="m in communityLabelList.data">
                    <input type="checkbox" style="zoom:1.8;margin-left: 10px;vertical-align:middle" ng-model="chk"
                           ng-click="toggle(chk,m.objId)" name="chkItem"
                            /> {{m.communityName}}
                </label>
            </div>
            <div class="form-group">
                <label class="control-label" for="textinput">分类：<!--category:--></label>
                <select ng-model="question.category" ng-options="c.value as c.name for c in categoryList" required>
                </select>
            </div>
            <div class="form-group">
                <label class="control-label" for="textinput">描述：<!--desc:--></label>

                <textarea class="control-label" rows="5" ng-model="question.desc" required style="width:100%"
                          tabindex="7"></textarea>
            </div>

            <div class="form-group">
                <label class="control-label" for="textinput">图片(最多可上传6张):</label>
                <input type="file" id="images_upload"
                       onchange="angular.element(this).scope().selectFile(this.files)" multiple accept="image/*">
                <div id="image_result" class="image-result"></div>
            </div>
            <div class="form-group">
                <label class="control-label" for="textinput">标签：<!--community:--></label>
                <br>
                <label ng-repeat="m in tagList.data">
                    <input style="zoom:1.8;margin-left: 10px;vertical-align:middle" type="checkbox" ng-model="chk"
                           ng-click="tagToggle(chk,m.objId)"/>{{m.value}}
                </label>
            </div>

            <div class="form-group">
                <a ng-click="gotoQuestionListPage()" class="btn btn-xs btn-primary">取消</a>
                <a ng-click="createQuestion(question)" class="btn btn-xs btn-primary">确定</a>
            </div>
        </form>
    </div>
</div>